package com.itheima.factory;

import com.itheima.controller.BaseStudentController;
import com.itheima.controller.OtherStudentController;
import com.itheima.controller.StudentController;
import com.itheima.dao.BaseStudentDao;
import com.itheima.dao.OtherStudentDao;
import com.itheima.dao.StudentDao;
import com.itheima.domain.Student;

/*
生产对象
 */
public class Factory {

    // 生产Controller 的对象
    //参数
    //返回值类型
   /* public  static OtherStudentController getOtherStudentController(){
        return new OtherStudentController();
    }
    public  static StudentController getStudentController(){
        return new StudentController();
    }*/

    public static BaseStudentController getStudentController(){
        return new OtherStudentController();
        //return new StudentController();
    }

    public static BaseStudentDao getStudentDao(){
        //return new StudentDao();
        return new OtherStudentDao();
    }
}
